package com.delivery.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@ApiModel(description = "套餐菜品关系实体类")
@Data
public class SetmealDish {
    @ApiModelProperty(value = "份数", required = true, example = "2")
    @NotNull
    private Integer copies;

    @ApiModelProperty(value = "菜品ID", required = true, example = "101")
    @NotNull
    private Long dishId;

    @ApiModelProperty(value = "关系ID", example = "202")
    private Long id;

    @ApiModelProperty(value = "菜品名称", required = true, example = "鱼香肉丝")
    @NotBlank
    private String name;

    @ApiModelProperty(value = "菜品价格", required = true, example = "25.00")
    @NotNull
    private BigDecimal price;

    @ApiModelProperty(value = "套餐ID", required = true, example = "1")
    @NotNull
    private Long setmealId;

}
